/**
 * Created by cchen on 2015/6/8.
 */
module.exports = function (app) {
    var banner = require('../../controllers/backoffice/backOffice-banner-controller');

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/banner/getAllContentListByCommunityId', banner.getAllContentListByCommunityId);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/banner/addCommunityBanner', banner.addCommunityBanner);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/banner/deleteCommunityBanner/:bannerId', banner.deleteCommunityBanner);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/banner/updateCommunityBanner', banner.updateCommunityBanner);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/banner/getBannerList/:type/:page', banner.getBannerList);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/banner/getBannerDetail/:bannerId', banner.getBannerDetail);
    app.delete('/rest/' + RESTFullServiceVersion + '/backoffice/banner/deleteBannerBind/:bindId', banner.deleteBannerBind);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/banner/bindCommunityBanner', banner.bindCommunityBanner);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/banner/getCommunityBannerList/:type/:communityId', banner.getCommunityBannerList);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/banner/setBindBannerOrder', banner.setBindBannerOrder);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/banner/setBannerBindOrder', banner.setBannerBindOrder);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/banner/confirmPushGroupTopic', banner.confirmPushGroupTopic);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/banner/confirmPushGroupBanner', banner.confirmPushGroupBanner);

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/banner/deleteBannerByFilters', banner.deleteBannerByFilters);

};